<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>

	<div align="center" class="DivModalPesq">

		<h:form id="formCC">
			<div align="left" class="DivAdic" style="margin-top: 24px;">
				<h:outputText value="#{message.msg_filtro}" styleClass="LabelFont" />
			</div>
			<div align="left" class="DivAdic">
				<p:selectOneMenu value="#{solicitaTela.comboModal}" effect="fade"
					style="font-size: 14px;" size="9">
					<f:selectItem itemLabel="#{message.msg_descri}" itemValue="1"
						style="font-size: 14px;" />
					<f:selectItem itemLabel="#{message.msg_codigo}" itemValue="2"
						style="font-size: 14px;" />
				</p:selectOneMenu>
			</div>
			<div align="left" class="DivAdic">
				<p:inputText value="#{solicitaTela.campoPesqui}"
					styleClass="LabelFont" style="font-size: 14px;" required="false"
					size="15" maxlength="30" />
				<p:commandButton id="pCentro" icon="ui-icon-search"
					title="#{dmessage.botao_pesquisar}" styleClass="ButtonPesq"
					action="#{solicitaTela.pesqCentroCusto}" update="dCcs"
					global="false" />
			</div>
			<br />
			<p:dataTable id="dCcs" var="cc" value="#{solicitaTela.ccModel}"
					paginator="false" rows="20" selection="#{solicitaTela.ccSel}"
					selectionMode="single" emptyMessage="#{message.msg_semvalores}">
					<p:ajax event="rowSelect" update=":form:iCc,dCcs"
						listener="#{solicitaTela.onCCSelect}" oncomplete="dlg5.hide()"
						process="@this,:form:iCc" global="false" />
					<p:column headerText="#{message.msg_codigo}" styleClass="LabelFont">
						<h:outputText value="#{cc.codigo}" size="25"
							styleClass="LabelFont" />
					</p:column>

					<p:column headerText="#{message.msg_descri}" styleClass="LabelFont">
						<h:outputText value="#{cc.descricao}" size="25"
							styleClass="LabelFont" />
					</p:column>
				</p:dataTable>
		</h:form>
	</div>

</h:body>
</html>